public class code {
    public static void main(String[] args) {
        int num = 6;
        int b = Fac(num);
        System.out.println(b);
    }
    public static int Fac(int a){
        if(a == 1){
           return a;
        }else{
            return a * Fac(a-1);
        }
    }
}
